package com.bdqn.t330.ch12file.servcie;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.t330.ch12file.entity.RightEntity;
import com.bdqn.t330.ch12file.mapper.RightMapper;

public interface RightService extends IService<RightEntity> {


    // IPage<RightEntity> iPage = rightMapper.selectPage(page, queryWrapper);
//最终我们要显示的列表是有查询条件
    public IPage<RightEntity> getListBiz(Page page, QueryWrapper queryWrapper);

    int deleteRightService(String rightCode);

    int addRightService(RightEntity rightEntity);

    int deleteByRightIdBiz(String rightCode);
}
